package com.zhouxiao.multithreading.kfc;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-03-13 17:03
 */

public class MainClass {
    public static void main(String[] args) {
        Kfc kfc = new Kfc();

        Customers customers1 = new Customers(kfc);
        Customers customers2 = new Customers(kfc);
        Customers customers3 = new Customers(kfc);
        Customers customers4 = new Customers(kfc);

        Waiter waiter1 = new Waiter(kfc);
        Waiter waiter2 = new Waiter(kfc);
        Waiter waiter3 = new Waiter(kfc);

        waiter1.start();
        waiter2.start();
        waiter3.start();

        customers1.start();
        customers2.start();
        customers3.start();
        customers4.start();
    }
}
